import static org.junit.Assert.*;

import org.junit.Test;
import java.lang.Math;

public class CulcYoshiTest2 {

	@Test
	public void testAreaOfCircle() {
		assertEquals(CulcYoshi.AreaOfCircle(2), Math.PI*4 ,1e-5);
	}

	@Test
	public void testAreaOfRectangle() {
		assertEquals(CulcYoshi.AreaOfRectangle(3, 4), 12 ,1e-5);
	}

	@Test
	public void testCircumference() {
		assertEquals(CulcYoshi.circumference(3), Math.PI*6 ,1e-5);
	}

	@Test
	public void testPerimeterOfRectangle() {
		assertEquals(CulcYoshi.PerimeterOfRectangle(3, 2), 10 ,1e-5);
	}

	@Test
	public void testAreaOfSquare() {
		assertEquals(CulcYoshi.AreaOfSquare(3), 9 ,1e-5);
	}

	@Test
	public void testPerimeterOfSquare() {
		assertEquals(CulcYoshi.PerimeterOfSquare(5), 20 ,1e-5);
	}

}
